package cw.spring.security.acl.poc.dao;

import java.util.Set;

import org.springframework.security.annotation.Secured;

import cw.spring.security.acl.poc.model.DealModel;

public class DealDAO extends BaseDAOHibernateImpl<DealModel> implements IDealDAO {

  @Override
  @Secured( { "REFERENTIALREAD" })
  public Set<DealModel> findAll() {
    return super.findAll();
  }

  public DealDAO() {
    super(DealModel.class);
  }

  @Override
  @Secured( { "REFERENTIALREAD", "ACL_DEAL_WRITE" })
  public void update(DealModel t) {
    super.update(t);
  }

}
